﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" Inherits="Admin_approve_posts" Codebehind="approve-posts.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Repeater ID="repViewPosts" runat="server" OnItemCommand="repViewPosts_ItemCommand">
        <ItemTemplate>
            <div class="desc-featured-content forum-post-list-item  margin-bottom-single">
                <div class="form-member-info margin-bottom-double clearfix">
                    <div class="grid_5">
                        <%# Eval("userId")%>
                        wrote on
                        <%# Eval("CreateDate")%>
                    </div>
                    <div class="grid_6 text-align-right">
                       <%-- <img runat="server" id="imgStatus" src='<%# Eval("StatusIcon") %>' title='<%# Eval("StatusName") %>' />--%>
                        <asp:Button ID="btnApprove" runat="server" Text='<%# Eval("Status").ToString()=="5"? "UNPUBLISH":" PUBLISH" %>'
                            CommandArgument='<%# Eval("PostId")%>' CommandName='<%# Eval("Status").ToString()=="5"? "UNPUBLISH":"PUBLISH" %>'
                            CssClass='<%# Eval("Status").ToString()=="5"? "button small white":"button small blue" %>' />
                        <asp:Button ID="btnDelete" runat="server" Text="Delete" CommandArgument='<%# Eval("PostId")%>'
                            CommandName="DELETE" CssClass="button small gray" />
                    </div>
                </div>
            
                <%# Server.HtmlDecode(Eval("MessageBody").ToString())%>
            </div>
        </ItemTemplate>
        <SeparatorTemplate>
        </SeparatorTemplate>
    </asp:Repeater>
</asp:Content>
